<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * P2pCmsArticles
 *
 * @ORM\Table(name="p2p_cms_articles", indexes={@ORM\Index(name="author", columns={"a_author"}), @ORM\Index(name="cat", columns={"c_code"}), @ORM\Index(name="time", columns={"a_time"}), @ORM\Index(name="publish", columns={"a_publish"}), @ORM\Index(name="order", columns={"a_order"}), @ORM\Index(name="title", columns={"a_title"}), @ORM\Index(name="read", columns={"a_read_count"}), @ORM\Index(name="F_ID", columns={"f_id"})})
 * @ORM\Entity
 */
class P2pCmsArticles
{
    /**
     * @var integer
     *
     * @ORM\Column(name="n_id", type="integer", nullable=false)
     */
    private $nId;

    /**
     * @var string
     *
     * @ORM\Column(name="c_code", type="string", length=25, nullable=false)
     */
    private $cCode;

    /**
     * @var string
     *
     * @ORM\Column(name="a_title", type="string", length=50, nullable=false)
     */
    private $aTitle;

    /**
     * @var string
     *
     * @ORM\Column(name="a_keywork", type="string", length=70, nullable=true)
     */
    private $aKeywork;

    /**
     * @var string
     *
     * @ORM\Column(name="a_description", type="text", length=65535, nullable=true)
     */
    private $aDescription;

    /**
     * @var string
     *
     * @ORM\Column(name="a_content", type="text", nullable=true)
     */
    private $aContent;

    /**
     * @var string
     *
     * @ORM\Column(name="a_author", type="string", length=50, nullable=false)
     */
    private $aAuthor;

    /**
     * @var string
     *
     * @ORM\Column(name="a_publish", type="string", length=30, nullable=false)
     */
    private $aPublish = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="a_order", type="integer", nullable=false)
     */
    private $aOrder;

    /**
     * @var integer
     *
     * @ORM\Column(name="a_time", type="integer", nullable=false)
     */
    private $aTime = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="a_read_count", type="integer", nullable=false)
     */
    private $aReadCount = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="a_save_time", type="integer", nullable=false)
     */
    private $aSaveTime;

    /**
     * @var integer
     *
     * @ORM\Column(name="f_id", type="bigint", nullable=false)
     */
    private $fId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="a_fileurl1", type="string", length=100, nullable=false)
     */
    private $aFileurl1;

    /**
     * @var string
     *
     * @ORM\Column(name="a_fileurl2", type="string", length=100, nullable=false)
     */
    private $aFileurl2;

    /**
     * @var string
     *
     * @ORM\Column(name="a_code", type="string", length=30, nullable=false)
     */
    private $aCode;

    /**
     * @var integer
     *
     * @ORM\Column(name="a_id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $aId;



    /**
     * Set nId
     *
     * @param integer $nId
     *
     * @return P2pCmsArticles
     */
    public function setNId($nId)
    {
        $this->nId = $nId;

        return $this;
    }

    /**
     * Get nId
     *
     * @return integer
     */
    public function getNId()
    {
        return $this->nId;
    }

    /**
     * Set cCode
     *
     * @param string $cCode
     *
     * @return P2pCmsArticles
     */
    public function setCCode($cCode)
    {
        $this->cCode = $cCode;

        return $this;
    }

    /**
     * Get cCode
     *
     * @return string
     */
    public function getCCode()
    {
        return $this->cCode;
    }

    /**
     * Set aTitle
     *
     * @param string $aTitle
     *
     * @return P2pCmsArticles
     */
    public function setATitle($aTitle)
    {
        $this->aTitle = $aTitle;

        return $this;
    }

    /**
     * Get aTitle
     *
     * @return string
     */
    public function getATitle()
    {
        return $this->aTitle;
    }

    /**
     * Set aKeywork
     *
     * @param string $aKeywork
     *
     * @return P2pCmsArticles
     */
    public function setAKeywork($aKeywork)
    {
        $this->aKeywork = $aKeywork;

        return $this;
    }

    /**
     * Get aKeywork
     *
     * @return string
     */
    public function getAKeywork()
    {
        return $this->aKeywork;
    }

    /**
     * Set aDescription
     *
     * @param string $aDescription
     *
     * @return P2pCmsArticles
     */
    public function setADescription($aDescription)
    {
        $this->aDescription = $aDescription;

        return $this;
    }

    /**
     * Get aDescription
     *
     * @return string
     */
    public function getADescription()
    {
        return $this->aDescription;
    }

    /**
     * Set aContent
     *
     * @param string $aContent
     *
     * @return P2pCmsArticles
     */
    public function setAContent($aContent)
    {
        $this->aContent = $aContent;

        return $this;
    }

    /**
     * Get aContent
     *
     * @return string
     */
    public function getAContent()
    {
        return $this->aContent;
    }

    /**
     * Set aAuthor
     *
     * @param string $aAuthor
     *
     * @return P2pCmsArticles
     */
    public function setAAuthor($aAuthor)
    {
        $this->aAuthor = $aAuthor;

        return $this;
    }

    /**
     * Get aAuthor
     *
     * @return string
     */
    public function getAAuthor()
    {
        return $this->aAuthor;
    }

    /**
     * Set aPublish
     *
     * @param string $aPublish
     *
     * @return P2pCmsArticles
     */
    public function setAPublish($aPublish)
    {
        $this->aPublish = $aPublish;

        return $this;
    }

    /**
     * Get aPublish
     *
     * @return string
     */
    public function getAPublish()
    {
        return $this->aPublish;
    }

    /**
     * Set aOrder
     *
     * @param integer $aOrder
     *
     * @return P2pCmsArticles
     */
    public function setAOrder($aOrder)
    {
        $this->aOrder = $aOrder;

        return $this;
    }

    /**
     * Get aOrder
     *
     * @return integer
     */
    public function getAOrder()
    {
        return $this->aOrder;
    }

    /**
     * Set aTime
     *
     * @param integer $aTime
     *
     * @return P2pCmsArticles
     */
    public function setATime($aTime)
    {
        $this->aTime = $aTime;

        return $this;
    }

    /**
     * Get aTime
     *
     * @return integer
     */
    public function getATime()
    {
        return $this->aTime;
    }

    /**
     * Set aReadCount
     *
     * @param integer $aReadCount
     *
     * @return P2pCmsArticles
     */
    public function setAReadCount($aReadCount)
    {
        $this->aReadCount = $aReadCount;

        return $this;
    }

    /**
     * Get aReadCount
     *
     * @return integer
     */
    public function getAReadCount()
    {
        return $this->aReadCount;
    }

    /**
     * Set aSaveTime
     *
     * @param integer $aSaveTime
     *
     * @return P2pCmsArticles
     */
    public function setASaveTime($aSaveTime)
    {
        $this->aSaveTime = $aSaveTime;

        return $this;
    }

    /**
     * Get aSaveTime
     *
     * @return integer
     */
    public function getASaveTime()
    {
        return $this->aSaveTime;
    }

    /**
     * Set fId
     *
     * @param integer $fId
     *
     * @return P2pCmsArticles
     */
    public function setFId($fId)
    {
        $this->fId = $fId;

        return $this;
    }

    /**
     * Get fId
     *
     * @return integer
     */
    public function getFId()
    {
        return $this->fId;
    }

    /**
     * Set aFileurl1
     *
     * @param string $aFileurl1
     *
     * @return P2pCmsArticles
     */
    public function setAFileurl1($aFileurl1)
    {
        $this->aFileurl1 = $aFileurl1;

        return $this;
    }

    /**
     * Get aFileurl1
     *
     * @return string
     */
    public function getAFileurl1()
    {
        return $this->aFileurl1;
    }

    /**
     * Set aFileurl2
     *
     * @param string $aFileurl2
     *
     * @return P2pCmsArticles
     */
    public function setAFileurl2($aFileurl2)
    {
        $this->aFileurl2 = $aFileurl2;

        return $this;
    }

    /**
     * Get aFileurl2
     *
     * @return string
     */
    public function getAFileurl2()
    {
        return $this->aFileurl2;
    }

    /**
     * Set aCode
     *
     * @param string $aCode
     *
     * @return P2pCmsArticles
     */
    public function setACode($aCode)
    {
        $this->aCode = $aCode;

        return $this;
    }

    /**
     * Get aCode
     *
     * @return string
     */
    public function getACode()
    {
        return $this->aCode;
    }

    /**
     * Get aId
     *
     * @return integer
     */
    public function getAId()
    {
        return $this->aId;
    }
}
